package com.system.demo.service.constant;

public class ApplicationStatus {
    // 已提交
    public static final int SUBMITTED = 0;

    // 已审批（通过）
    public static final int APPROVED = 1;

    //已审批（未通过）
    public static final int REJECTED = 2;

    // 已结束(未获奖,流程结束)
    public static final int COMPLETED = 3;

    // 已提交认定申请
    public static final int SUBMITTED_RECOGNITION_REQUEST = 4;

    // 已审批认定申请（通过认定）
    public static final int APPROVED_RECOGNITION_REQUEST = 5;

    //未通过认定 需要重新上传照片
    public static final int REJECTED_RECOGNITION_REQUEST = 6;

    //上传竞赛获奖证书时 存放在minio中的文件夹名称
    public static final String MINIO_COMPETITION_PATH = "competition";

    public static final String MINIO_LEAVE_PATH = "leave";

    // 私有构造函数，防止实例化
    private ApplicationStatus() {
        throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
    }

    // 可选：提供一个方法来获取状态的描述
    public static String getStatusDescription(int status) {
        switch (status) {
            case SUBMITTED:
                return "已提交";
            case APPROVED:
                return "已审批";
            case REJECTED:
                return "未通过审核";
            case COMPLETED:
                return "已结束";
            case SUBMITTED_RECOGNITION_REQUEST:
                return "已提交认定申请";
            case APPROVED_RECOGNITION_REQUEST:
                return "已审批认定申请";
            case REJECTED_RECOGNITION_REQUEST:
                return "未通过认定,需要重新上传照片";
            default:
                return "未知状态";
        }
    }


}
